{{include template('public/header','admin')}}
<body>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <div class="alert alert-info">信息！在指定范围内出现的相关文字自动加上链接。</div>
                <form method="post" action="/admin/newskey/batchremove" class="form-inline" role="form">
                    <table id='NewskeyList' class="table table-condensed table-hover table-striped tablesorter table-fixed table-selectable">
                        <thead>
                            <tr>
                                <th style="width: 15px;"><input type="checkbox" name="chk" class="checkbox" onclick="checkAll('prefix', this.form, 'ids', 'chk')" /></th>
                                <th >{{L('newskey_name')}}</th>
                                <th >{{L('newskey_url')}}</th>
                            </tr>
                        </thead>
                        <tbody>
                            {{foreach $items as $item}}
                            <tr>
                                <td><input type="checkbox" class="checkbox" name="ids[]" value="{{$item.id}}" /></td>
                                <td><input type="text" class="form-control" name="name[{{$item.id}}]" value="{{$item.name}}" size="15"></td>
                                <td><input type="text" class="form-control" name="url[{{$item.id}}]" value="{{$item.url}}" size="50"></td>
                            </tr>
                            {{/foreach}}
                        </tbody>
                        <tr>
                            <td style="width: 15px;"></td>
                            <td colspan="4">
                                <div><a href="###" onclick="addrow(this, 0)" class="addtr">{{L('add')}} {{L('newskey')}}</a></div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="15">
                                <div class="form-inline " style="text-align: left;">
                                    <div  style="float: left;">
                                        <input type="checkbox" name="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'ids')" />{{L('chkall')}}
                                        <input type="radio" class="radio" id="optype_outer" name="optype" value="del" />{{L('delete')}}
                                        <input type="submit" class="btn" name="sendsubmit" value="{{L('submit')}}" />
                                    </div>
                                    <div  style="float:right;">
                                        {{include template('public/page','admin')}}
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
    <script>
        var rowtypedata = [
            [
                [0, '', 'td25'],
                [0, '<input type="text" class="form-control" name="newname[]" size="15">'],
                [0, '<input type="text" class="form-control" name="newurl[]" size="50">']
            ]
        ]
    </script>
</body>
</html>

